The online racing simulator
Searching in All forums
(374 results)
Tim NL
S2 licensed
Hi,

Is it posible to store the value of /ws bl1 fbm pb username into a var?

Something like:

CASE "!test":
$ws=[COLOR=red]cmdLFS[/COLOR]( "/ws bl1 fbm pb tim nl");
cmdLFS( "/msg lfs pb :" . $ws);
BREAK;

Tim NL
S2 licensed
Hi,
I found a small bug in 5.844
The new LapperVar's in release 5.844 will not work so fine.

RaceLaps = number or laps for a race
QalMins = number or minute in a qual
racelapsleft = Race lap left before end of race

getLapperVar( "RaceLaps" );
getLapperVar( "QalMins" );

The number of race laps are only show when you in a race and the QualMins don't show anything.

I tested white the next script.
Type !test in a qual session gives RaceLaps :0 and QalMins :
Type !test in a race session gives RaceLaps :6 (OK,is number of racelaps ) and QalMins :
After a race or when race is not started ( nobody on the track) the number of race laps will stay on 0.
The getLapperVar( "QalMins" ) stay always empty.

CASE "!test":
cmdLFS( "/msg RaceLaps :" . getLapperVar( "RaceLaps" ));
cmdLFS( "/msg QalMins :" . getLapperVar( "QalMins" ));
BREAK;

PSPad
Tim NL
S2 licensed
Hi,
Here is a bit updated lapper.ini for PSPad

You can use PSPad to open your lpr files. http://www.pspad.com/en/

To install the lapper.ini
Copy the lapper.ini in (Path where you installed PSPad)...\PSPad editor\Syntax . ( default is C:\Program Files\PSPad editor\Syntax )
Open PSPad and under Settings - Highlighters setting click on <not assigned> and select on the right side lapper and Apply
Last edited by Tim NL, .
Restricted number of connection from one IP
Tim NL
S2 licensed
Hello,
A option in the Dedi that restriced how many connection a server can accept from one IP adress.

Then its not or more difficult to connect a (DEMO)server with serval accounts by one person and then ban everyone who is online without a reason.

If its a option in the Dedi setup.cfg admins can accept more or less connections from one IP adress.

Something like
//Number of connections to accept from one IP
/IPcon=1
Tim NL
S2 licensed
Quote from sinanju :Thanks, Yisc[NL], I hadn't spotted that.

It has helped narrow the problem down.

I think the problem is to do with

IF( $AngleVelocity < 0 )
THEN
$Angle_drift=($AngleVelocity)*(-1);

I think Lapper sees $Angle_drift as an empty variable.

I've tried various ways to SetCurrentPlayerVar, but without success.

The latest thing I tried was

Event OnDriftScore()

SetCurrentPlayerVar($Angle_drift,"AngleVelocity*(-1)");

$AngleVelocity = GetCurrentPlayerVar( "AngleVelocity" );
$DriftScore = GetCurrentPlayerVar( "DriftScore" );
$LastDriftScore = GetCurrentPlayerVar( "LastDriftScore" );
$Angle_drift = GetCurrentPlayerVar( "Angle_drift" );

IF( $GUI_drift == "yes" )
THEN

openPrivButton( "drf0",99,1,22,10,4,-1,16," " );

IF( $AngleVelocity < 0 )
THEN
openPrivButton( "drf1",100,2,20,4,4,-1,32,langEngine( "%{main_ondriftscore}%" , $DriftScore, $LastDriftScore ) );
openPrivButton( "drf2",100,6,20,4,4,-1,32,langEngine( "%{main_driftangle}%" , GetCurrentPlayerVar("$Angle_drift") ) );
ELSE
openPrivButton( "drf1",100,2,20,4,4,-1,32,langEngine( "%{main_ondriftscorerev}%" , $DriftScore, $LastDriftScore ) );
openPrivButton( "drf2",100,6,20,4,4,-1,32,langEngine( "%{main_driftanglerev}%" , $AngleVelocity ) );
ENDIF
ENDIF
EndEvent

This gives me an angle one way, but not in reverse. See attachment.

Also tried various other codings for Get variable

SetCurrentPlayerVar($Angle_drift,AngleVelocity*(-1));
SetCurrentPlayerVar($Angle_drift,$AngleVelocity*(-1));
SetCurrentPlayerVar($Angle_drift,"$AngleVelocity*(-1)");

Anyone any suggestions?

Is the AngleVelocity an Array Variable?

If so, then this can't be set (according to change log).

Maybe needs a negative AngleVelocity built into Lapper as well as AngleVelocity?

I think you are missing GlobalVar $Angle_drift; somewhere.

$AngleVelocity is the drift angel ( positive and negative ).
With $Angle_drift=($AngleVelocity)*(-1); you make the negative value of $AngleVelocity positive and store it in $Angle_drift.
Tim NL
S2 licensed
Quote from lizardfolk :I think I posted in the wrong section, but I'm not sure where to post this so...here I go.

Is there an insim or program that restricts how many laps a person can do on a server?

Is there a way to monitor how many laps a person did on a server?

Sorry for the noob questions

Yes , you can do that with LFSLapper.
The total number of laps per car/track is default in lapper.
And you can make a script that count the number of laps per player per session or qual ed.

#########################
#Action to do on session#
#########################

$MaxSessionLaps = 2;

Event OnMaxSessionLaps() # Player event
privMsg( "Max session laps reacheds" );
EndEvent

Last edited by Tim NL, .
Tim NL
S2 licensed
Quote from mike864 :the password :66457743

/admin=66457743 and then it will work
Tim NL
S2 licensed
Hi,
Im busy with a multi language GUI with also the missing tracks BL3 AU1 AU2 AU3 AU4.
I will also update the drift part.

New version works with LFSLapper 5.844 and use the new lappervars getLapperVar( "RaceLaps" ); and getLapperVar( "QalMins" ); to set automatic the Qual time and number of race laps.

I dont know when ready because i need to find some time to finish it . ( im a bit busy at the moment)
Tim NL
S2 licensed
Quote from Gai-Luron :Hello,

Can you explicit where exactly the bug

Thank's

Gai-Luron

Hi,
When the Gui104 startup it do not detect with track is active but starts always with BL1.
Now it detect what the current track is when the GUI start up and shows the correct one.

And there is a small cosmetic bug when you sellect a reverse track button (example BL1 and Reverse) and when you sellect a other track ( example KY1 ) the reverse button of BL1 will not moved to KY1.

Both works fine in version Gui104b and in Gui105.
In Version Gui105 is also the car selector improved.
Last edited by Tim NL, .
Config GUI Release
Tim NL
S2 licensed
Hi all,

I updated the config GUI to Version 1.0.7 to setup your server(s).

Last changes
Ver.1.0.5 The track selector works now ok. ( old version had a small bug with the reverse tracks ).
Ver.1.0.5 The car selector is improved. You can now select now any car combination. Like GTR-XRR gives FXR+FXR or TBO+FZ5
Ver.1.0.5 Just make a selection of the cars you want and press the SET button.
Ver.1.0.7 You can now also select the missing tracks BL3 AU1 AU2 AU3 AU4
Ver.1.0.7 You can now choice between Laps/Hours races.
Ver.1.0.7 Fixed some little bugs.

LFSLapper Version
I have tested this GUI on LFSLapper 5.844 and 5.845 and works fine.

Install
Replace the guiconfig.lpr file in your working dir ..\bin\default\includes

To use the GUI ingame be sure that your username is in the admin.txt file and just type !gui
Last edited by Tim NL, .
Tim NL
S2 licensed
Quote from Gai-Luron :Concatenation is done with .

$b1 = $a1 . $a2;

Ok thx
Tim NL
S2 licensed
Hi,

How can i add 2 strings together?
When i make something like this it gives on var $b1 the value 0 in case of Hello world.
I use lapper version 5.841.


CASE "!hello":
GlobalVar $a1 ;
$a1 = "hello " ;
GlobalVar $a2 ;
$a2 = "world" ;
privMsg( . $a1 . " + " .$a2 );
$b1 = $a1 + $a2;
privMsg( . $b1 . " this a1+A2" );
BREAK;

Tim NL
S2 licensed
Hi,
Hamachi dont work with LFS and Internet IP ranges won't work in LAN mode.
Tim NL
S2 licensed
Hi,
I downloaded last night version 1.1.4.1 of Pyinsim and installed Python 2.6.
Everything works fine and very nice to program .

I found a small bug in the lap times example script.
When i drive a lap the output to the console is ss:mm.xx incase of mm:ss.xx

example:
Lap: [NLR]Tim - FOX - 10:01.030 -- but it was a laptime of 1:10.030
Lap: [NLR]Tim - FOX - 4:01.910 -- but it was a laptime of 1:04.910
Tim NL
S2 licensed
Quote from michele0676 :Hi Gai Luron, how i can see the banned list in my LfsLapper ?
Thanks.

You cant see a banned list in lapper but there is a ban editor where you can see whos banned is on your dedi server.
http://www.lfsforum.net/showthread.php?p=872522#post872522

And its posible in lapper to create a list with people who are not welcome on your server(s).


Event OnConnect() # Player event
$Username = GetCurrentPlayerVar("Username");

UserGroupFromFile( "notwelcome", "./notwelcome.txt" );
IF( UserInGroup( "notwelcome",$Username ) == 1 )
THEN
cmdLFS( "/ban " . $Username . " 30" );
ENDIF

Tim NL
S2 licensed
Quote from bishofek :Hi!

I have som issues with new 5.842 version of lapper.
I've configured LFSServers,default_1 and LFSLapper.lpr and lapper dont want to start.
He connects to server and in LFS dedi is written "LFSLapper in Stand by State" and nothing else.
Earlier versions works fine like 5.7 but they didnt count points when i was drifting.

I attach logs and configs

P.S

Sorry for my bad english im from Poland and i just want to have cool server

Hi,
Change in LFSServers.cfg autostart in autowork and remove the line DEF1.


Edit : LOL Gai-Luron was faster
Tim NL
S2 licensed
Hi Voodoo,

Works fine. Good Job

Waiting for the update with more rolling start option ( min and max speed and stuff like that)

Maybe a option to turn different things on and off.
pitboard on/off ,crew on/off , greatlap times on/off ( is not necessary on a oval).
Tim NL
S2 licensed
Quote from [d9] :hehe, this is oportunity for "newcommers" to join there

lol

I was trying to create something to start a race with a rolling start.
The idea was that the safety car is on pole and driven by a admin. second place is empty, and 3rd to the last is everyone who is racing is order of the qual. I dont know if this is posible but it sounds great .
I did a race on iracing on a oval with a rolling start and it was really great
Tim NL
S2 licensed
Hi,
A small request.
Its now posible to move users in a group with MoveUserToGroup() and remove a user from a group with RemoveUserFromGroup().
But i also like a new GLScript function that remove all users from a group. Something like RemoveAllUsersFromGroup() or EmptyGroup().

Quote :Originally Posted by [d9]
- custom grid building on restarts (depend on session pb/server pb/lfsw pb etc.) ... like airio/ctra
Already in Todo List
Thank's for your idea. i put this ideas on todo list

Cool Thanks this will be great.
Is it then also posible to leave a place on the grid open?
Example: 1st place a player, 2nd place empty ,3rd to last place the rest of the players.
Thanks in advance
Tim NL
S2 licensed
Quote from [nism0]M5 :this is problem im having

Loading WR...OK

But your connection is not ok.
Check your Insim port. Start LFS server with argument "/Insim=29999"
or type "/insim 29999" in talk window when server is already running.
And check if your admin pwd from the dedi server the same is as in lapper.
In the ini file and in LFSLapper.lpr
Tim NL
S2 licensed
Quote from Bass-Driver :hi
is it possible to turn the driftpoints on and off by using a command in the help list??

Example:

. "&^3!drfoff ^8Turn Driftpoint System Off"
. "&^3!drfon ^8Turn Driftpoint System On"

Hi ,
Its in your PM
Tim NL
S2 licensed
Quote from Andy King :Hi Tim, can you show me an example of the new GLScripts as not sure how to implement them.

Hi Andy,
I created this to make the new points database.
When somebody connect the old points wil copyed to the new database.

In Event OnConnect()
SetCurrentPlayerVar( "points_total",getUserStoredValue( "points_total" ) ); #Get total points new database
SetCurrentPlayerVar( "tot_points",GetStoredValue( $Username . "tot_points" ) ); #Get total points old databsae

IF( GetCurrentPlayerVar( "tot_points" ) > GetCurrentPlayerVar( "points_total" ) ) #If old data is bigger then new data
THEN #Then set new data with the old data
SetCurrentPlayerVar( "points_total", GetCurrentPlayerVar( "tot_points" ) );
setUserStoredValue( "points_total", GetCurrentPlayerVar( "points_total" ) );
ENDIF

And to show the points
CASE "!point":
topUser( "[AKM] Points System","points_total","DESC",argv );
BREAK;
CASE "!rank":
nearUser( "[AKM] Points System","points_total","DESC",argv );
BREAK;

Tim NL
S2 licensed
Hi,

The new GLScript command's in version 5.837 works great Thx

a small bug report:
If in part Race Control the $AutoRestartRaceSec=120; is set to 2 minutes
If qual is in progress and there is only one player online , and when you go to pit and leave pit the qual stops and race will start after 2 minutes.

$AutoRestartRaceSec = Second between the end of a race (last player finished) and an automatic restart

Last edited by Tim NL, .
Tim NL
S2 licensed
Quote from Gai-Luron :Hello,

Here the last version and i think i'am near Release. No new features Added in next version, just debugging.

Bye

Gai-Luron

Hi,
Sounds great Very good job. Very nice new options in ver 5.837

I only missing in the errorlog the name of the lpr file,the name of the Sub and linenumber where the fault is in the script. And a short error message like SYNTAX ERROR or MISSING something.
Last edited by Tim NL, .
Tim NL
S2 licensed
Quote from Bazzz66 :Hi Guys,

My favorite server has banned me, for crashing.

That is a bit of a problem that they were right for that 1 time (the guy was really annoying, blocking and smashing me). I lost a bit of self control and smashed him of the track.

Does anyone know how long the ban takes, or how I can send a e-mail to the admins??

That they kicked me for that day ok, but longer.......

Tnx

Hi,

It was a vote by other players , so the ban was for 12 hours.
I checked the ban file and bazzz66 was not in it anymore.

LFSLapper was down yesterday , but normaly you can read the server rules with !rules or type !help and click rules.
Crashing other players is not allowed on NLR . If see by me ( or other admin ) people will be bannend or kicked. Min. ban is 1 day( 24 hours ) or longer.

ps. we dont have a website ( is still under construction ).
FGED GREDG RDFGDR GSFDG